package com.epam.Entity;


import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import java.util.UUID;

@Entity
@Table(name = "t_order")
@Data
public class Order {

    @Id
    private String orderId;

    private String userId;

    private Date createTime;

    private Date modifyTime;

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", useId=" + userId +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                '}';
    }
}
